package com.t194.vo;

import com.github.pagehelper.PageInfo;

import java.util.List;

public class PageResult {

    private Long total;
    private List rows;

    public PageResult(){}

    public PageResult(List list){
        PageInfo pageInfo=new PageInfo(list);
        this.total=pageInfo.getTotal();
        this.rows=pageInfo.getList();
    }


    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }
}
